package com.szxy.common.redis.controller;

import com.szxy.common.redis.service.RedisOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther:zwer
 * @Date:2019/9/25 21:07
 * @Description:com.szxy.common.redis.controller
 * @Version:1.0
 **/
@RestController
@RequestMapping("/redis/order")
public class RedisOrderController {

    @Autowired
    private RedisOrderService redisOrderService;

    @GetMapping("/selectOrderId")
    public Long selectOrderId(){
        return this.redisOrderService.selectOrderId();
    }

}
